package entry;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * SpringBoot启动入口 
 * @author libra
 */
//标注该类为SpringBoot的主配置类
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})// 排除前端门户的数据库自动装配
//指定包扫描
@ComponentScan(value="libra")
// 扫描Servlet组件
@ServletComponentScan(value="libra")
// 开启EurekaServer
@EnableEurekaServer
public class MainStart_EurekaServer_10100 {
	public static void main(String[] args) {
		ConfigurableApplicationContext cac = SpringApplication.run(MainStart_EurekaServer_10100.class, args);
	}
}
